import { http } from "../../utils"

export const getUser = () => async (dispatch) => {
  const { data } = await http.get("/user/profile")
  dispatch({ type: "GET_USER", payload: data.data })
}
